﻿$.MGJ.OriginsSearch = [];
(function () {
    var _this = $.MGJ.OriginsSearch;
    $.extend($.MGJ.OriginsSearch, {
        //分页   
        Ajax_PageLists: function (pageIndex) {
            window.SearchKey = removeSpace($("#search").val());
            $.L.ajaxHandle({
                url: ACTION_URL("PageLists", "OriginsSearch"),
                data: {
                    search: window.SearchKey,
                    pageIndex: pageIndex,
                    pageSize: 10
                },
                success: function (response) {
                    $("#CodeLogListTable").L_bindingDataList(response);
                    $(".Valid").each(function () {

                        if ($(this).text() == 0) {
                            $(this).html("异常")
                        }
                        else if ($(this).text() == 1) {
                            $(this).html("真")
                        }

                    })
                    $(".QueryType").each(function () {
                        if ($(this).text() == "0") {
                            $(this).html("微信")
                        }
                        else if ($(this).text() == "1") {
                            $(this).html("网站")
                        }
                        else if ($(this).text() == "2") {
                            $(this).html("短信")
                        }
                        else if ($(this).text() == "3") {
                            $(this).html("电话")
                        }
                        else if ($(this).text() == "4") {
                            $(this).html("Wap")
                        }
                    })


                }
            });
        }
    });
})(jQuery);


(function () {
    var _this = $.MGJ.OriginsSearch;
    $.extend($.MGJ.OriginsSearch, {


    });
})(jQuery);